/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package photoshare.dto;

import java.io.Serializable;

/**
 *
 * @author PhotoShare
 */
public class FunctionDTO implements Serializable {

    private Integer functionId;
    private String action;
    private String description;

    public FunctionDTO() {
    }

    public FunctionDTO(Integer functionId) {
        this.functionId = functionId;
    }

    public FunctionDTO(Integer functionId, String url) {
        this.functionId = functionId;
        this.action = url;
    }

    public FunctionDTO(Integer functionId, String action, String description) {
        this.functionId = functionId;
        this.action = action;
        this.description = description;
    }

    

    public Integer getFunctionId() {
        return functionId;
    }

    public void setFunctionId(Integer functionId) {
        this.functionId = functionId;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String url) {
        this.action = url;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (functionId != null ? functionId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FunctionDTO)) {
            return false;
        }
        FunctionDTO other = (FunctionDTO) object;
        if ((this.functionId == null && other.functionId != null) || (this.functionId != null && !this.functionId.equals(other.functionId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "dto.Functions[functionId=" + functionId + "]";
    }
}
